package work3.work3;

public class Point {
    int flag=0;//0销售点，1进货点
    String name;//进货点对应的商品名


    public Point() {
    }

    public Point( String name,int flag) {
        this.flag = flag;
        this.name = name;
    }

    /**
     * 获取
     * @return flag
     */
    public int getFlag() {
        return flag;
    }

    /**
     * 设置
     * @param flag
     */
    public void setFlag(int flag) {
        this.flag = flag;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    public String toString() {
        return "Point{flag = " + flag + ", name = " + name + "}";
    }
}
